package com.javaee.wordtree.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javaee.wordtree.entity.UserStoryProgress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserStoryProgressMapper extends BaseMapper<UserStoryProgress> {
    
    @Select("SELECT * FROM user_story_progress WHERE user_id = #{userId} AND template_id = #{templateId}")
    UserStoryProgress findByUserIdAndTemplateId(@Param("userId") String userId, @Param("templateId") Long templateId);
}